From: Olaf Hering Date: Tue, 14 Dec 2010 18:47:52 +0000 (+0000) Subject: xenpaging: remove perror usage in xenpaging_init error path X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=ea9ae21f70cb5bf516e1008c9953dbe0f0883a14;p=xen.git xenpaging: remove perror usage in xenpaging_init error path Use the libxc error macro to report errors if initialising xenpaging fails. Also report the actual errno string. Signed-off-by: Olaf Hering Signed-off-by: Ian Jackson --- diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c index 9bfbd12ea0..0e82121e29 100644 --- a/tools/xenpaging/xenpaging.c +++ b/tools/xenpaging/xenpaging.c @@ -141,7 +141,7 @@ xenpaging_t *xenpaging_init(xc_interface **xch_r, domid_t domain_id) ERROR("EPT not supported for this guest"); break; default: - perror("Error initialising shared page"); + ERROR("Error initialising shared page: %s", strerror(errno)); break; } goto err;